using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Builder
{
   public partial class TrainingScreen : Form
   {
      public TrainingScreen()
      {
         InitializeComponent();
         cmbxAttr1.SelectedIndex = 0;
         cmbxAttr2.SelectedIndex = 0;
      }

      private void Enable()
      {
         if (rdbtnIntense.Checked)
         {
            cmbxAttr2.Enabled = true;
            chckNoActivity.Enabled = false;
         }
         else
         {
            cmbxAttr2.Enabled = true;
            chckNoActivity.Enabled = true;
         }
      }
      private void rdbtnIntense_Click(object sender, EventArgs e)
      {
         Enable();
      }

      private void btnTrain_Click(object sender, EventArgs e)
      {
         this.DialogResult = DialogResult.OK;
         this.Close();
      }

      private void btnCancel_Click(object sender, EventArgs e)
      {

         this.DialogResult = DialogResult.Cancel;
         this.Close();
      }
   }
}